<template>
  <m-page>
    <!-- 提现结果页 -->
    <m-header title="提现结果"></m-header>
    <div class="withdraw_result">
      <div class="g-top">
        <div class="g-box"></div>
        <p class="u-txt1">提现成功</p>
        <p class="u-txt2">提现金额(元)</p>
        <p class="u-txt3">
          <ynet-amount :value="data.paymentAmount" :precision='2'></ynet-amount>
        </p>
      </div>
      <div class="g-center">
        <div class="list">
          <span>收款人</span>
          <span class="u-txt4">{{data.name}}</span>
        </div>
        <div class="list">
          <span>收款账户</span>
          <span class="u-txt4">{{data.accountCardId}}</span>
        </div>
        <div class="list">
          <span>交易时间</span>
          <span class="u-txt4">{{data.time}}</span>
        </div>
        <div class="btn">
          <ynet-button type="warning" @click="goback">完成</ynet-button>
        </div>
      </div>
    </div>
  </m-page>
</template>

<script>
import {Amount} from "ynet-mobile"
import ynetButton from "@components/button/index";
export default {
  components: {
    ynetButton,
    [Amount.name]:Amount
  },
  data() {
    return {
      data:{}
    };
  },
  created() {
    this.data = app.params
  },
  mounted() {},
  methods: {
     //页面跳转
    goto(item , params) {
      let url = `http://172.16.1.239:8080/rong_yi_tong_card/${item}`;
      window.location.href = url;
      // app.api.pushWindow( url ,params )
    },
    // 完成按钮
    // 点击跳转回融易通卡首页
    goback(){
      this.goto('home_pages/card_information.html')
    }    
  },
  watch: {},
  computed: {}
};
</script>

<style lang="scss" scoped>
@import "./index.scss";
</style>

